<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
        /* display: flex; */
    }
    .left,.right{
        width:200px;
        height:200px;
        border:2px solid #ccc;
        margin:10px;
        /* display: inline-block; */
        /* float: left; */
    }

</style>
<body>
    <div class="box">
        <div class="left">我是左边盒子</div>
        <div class="right">我是右边的盒子</div>
    </div>
</body>
</html>